Gets and sets the item at the specified index from within the collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Default Property Item( _
ByVal index As Integer _
) As T |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As RasterCollection(Of T)
Dim index As Integer
Dim value As T
instance.Item(index) = value
value = instance.Item(index)
|
C# | |
---|
public virtual T this[
int index
]; {get; set;} |
Managed Extensions for C++ | |
---|
public: __property virtual T get_Item(
int index
);
public: __property virtual void set_Item(
int index,
T value
); |
C++/CLI | |
---|
public:
virtual property T default [int] {
T get(int index);
void set (int index, T value);
} |
Parameters
- index
- The zero-based index of the element to get or set.
Return Value
The item at the specified index.
Example
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also